# include "uce.h"

UCE * newUCE () {
	UCE *new = (UCE *) malloc(sizeof(UCE));
	if (!new) logMessage("data","uce","newUCE","Memória Insuficiente",CRITICAL);
	new->name = NULL;
	new->maxStudents = -1;
	return new;
}

void freeUCE (UCE *uce) {
	if (uce) {
		if (uce->name) free(uce->name);
		free(uce);
	}
}
